<template>
  <a href="tel:020-83123453" v-if="item.name === '一键呼叫'">
    <div class="weui-grid__icon">
        <img :src="item.imgsrc" :srcset="item.imgsrcset" alt="">
    </div>
    <p class="weui-grid__label">{{item.name}}</p>
  </a>
  <router-link :to="'/reportinfo/' + item.id + '/' + item.name" v-else>
    <div class="weui-grid__icon">
        <img :src="item.imgsrc" :srcset="item.imgsrcset" alt="">
    </div>
    <p class="weui-grid__label">{{item.name}}</p>
  </router-link>
</template>

<script>
export default {
  name: 'ReportGridItem',
  props: ['item']
}
</script>
